//
//  ALResult.m
//  阿里星球-音乐界面
//
//  Created by Mars_ZXB on 16/8/13.
//  Copyright © 2016年 BAT3. All rights reserved.
//

#import "ALResult.h"
#import "ALResultData.h"

@implementation ALResult

- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<ALResultData *> *dataArray = [NSMutableArray array];
        for (NSDictionary *dataDic in value) {
            ALResultData *resultData = [ALResultData modelWithDictionary:dataDic];
            [dataArray addObject:resultData];
        }
        _data = dataArray;
    }
}

@end
